/**
 * @(#) CongMoneyWriteVO.as
 *
 * @date		2009. 03. 19.
 * @version		1.0
 * @author		Park, Juneho
 * @description	경조사  Value Object
 *
 */
package com.skt.common_hr.congmoney_sac.model.vo
{
	import com.wcl.utils.DateUtil;
	
	import mx.formatters.PhoneFormatter;

	[Bindable]
	public class CongMoneyWriteVO
	{
		public var CARDT:Date;			//최초입사일
		
		public var GWAREKEY:String;			//Groupware 전자결재 Key
		public var CPERNR:String;			//경조대상자 사원 번호
		public var CNAME:String;			//대상자이름
		public var ORGTX:String;			//부서명(상위조직명 포함)
		public var CODAT:Date;				//경조발생일
		public var CORSN:String;			//경조사유 코드
		public var CORNM:String;			//경조사유 이름
		public var ZTEXT:String;			//경조내역
		public var COPER:String;			//사유발생자
		public var COREG:String;			//주민등록번호 (한국)
		public var FAMILY:String;			//가족코드
		public var FTEXT:String;			//경조 가족관계 텍스트
		public var BETRG:Number;			//HR 급여관리: 금액
		public var WAERS:String;			//통화 키
		public var BANKL:String;			//은행 키
		public var BANKA:String;			//은행 이름
		public var BNKSA:String;			//은행 계정 정보 레코드 유형
		public var STEXT:String;			//하위 유형 이름
		public var BANKN:String;			//은행 계정 번호
		public var EMFTX:String;			//예금주 텍스트
		public var COSEL:String = "";		//경조휴가신청여부
		public var COBEG:Date;				//경조휴가시작일
		public var COEND:Date;				//경조휴가종료일
		public var COSTEN:String;			//경조휴가 시작일과 종료일
		public var CODYS:int = 0;			//경조휴가일수
		public var ZWRTH:String="";			//화환 지급여부
		public var ZWRSP:String="";			//화환선지급여부
		public var PLACE:String;			//배송처
		public var REPER:String;			//받는사람
		public var CNNCT:String;			//연락처
		public var SNDAT:String;			//배송일
		public var ETCTX:String;			//비고
		public var IPERNR:String;			//신청인 사원 번호
		public var INAME:String;			//신청자이름
		public var IDATE:Date;				//신청일
		public var WPERNR:String;			//결재자 사원 번호
		public var WNAME:String;			//결재자이름
		public var WSTATUS:String;			//결재진행상태
		public var WSTATX:String;			//결재진행상태명
		public var BSTATUS:String;			//전표진행상태
		public var BSTATX:String;			//결재진행상태명
		public var BELNR:String;			//전표번호
		public var ZFNR:String;				// 장례물품 신청 여부 	2010.12.06 Shin, Yunwoo추가
		public var PRINT_IDATE:Date;		//프린트용신청일
		public var IDAY:String;				//프린트용한글 신청요일
		public var PRINT_CODAT:Date;
		public var PERSK:String;

		public var CBETRG:String;			// 경조금 (결재폼에 추가) 20120509
 
		public function getPid(pid:String):String
		{
			var pidNum:PhoneFormatter = new PhoneFormatter;
			pidNum.formatString = "######-#######";
			return pidNum.format(pid); 
		}

		public function get CODAT_F():String {
			return DateUtil.toDefaultString(CODAT);
		}
		public function get COBEG_F():String {
			return DateUtil.toDefaultString(COBEG);
		}
		public function get COEND_F():String {
			return DateUtil.toDefaultString(COEND);
		}
		public function get IDATE_F():String {
			return DateUtil.toDefaultString(IDATE);
		}
		public function get CARDT_F():String {
			return DateUtil.toDefaultString(CARDT);
		}		
	}
}